import request from '@/utils/request'

export const apiUserIncoiceLists = (params) => request.get('invoice/userInvoiceLists', {
	params
})

export const apiOrderIncoiceLists = (params) => request.get('invoice/orderInvoiceLists', {
	params
})


export const apiIncoiceConfig = () => request.get('invoice/getInvoiceConfig')


export const apiAddUserIncoice = data => request.post('invoice/invoiceTitleAdd', data)

export const apiEditUserIncoice = data => request.post('invoice/invoiceTitleEdit', data)

export const apiDeleteUserIncoice = data => request.post('invoice/invoiceTitleDel', data)

export const apiUserIncoiceDetail = (params) => request.get('invoice/invoiceTitleDetail', {
	params
})